package com.welfare.business.service;

import java.util.List;
import com.welfare.business.domain.Book;
import com.welfare.business.domain.BookExample;
import com.welfare.common.base.BaseService;

/**
 * bookService接口
 * 
 * @author welfare
 * @date 2022-09-29
 */
public interface BookService extends BaseService<Book, BookExample> {


    /**
     * 查询book
     *
     * @param bid book主键
     * @return book
     */
    public Book selectBookByBid(Integer bid);

    /**
     * 查询book列表
     *
     * @param book book
     * @return book集合
     */
    public List<Book> selectBookList(Book book);

    /**
     * 新增book
     *
     * @param book book
     * @return 结果
     */
    public int insertBook(Book book);

    /**
     * 修改book
     *
     * @param book book
     * @return 结果
     */
    public int updateBook(Book book);

    /**
     * 批量删除book
     *
     * @param bids 需要删除的book主键集合
     * @return 结果
     */
    public int deleteBookByBids(Integer[] bids);

    /**
     * 删除book信息
     *
     * @param bid book主键
     * @return 结果
     */
    public int deleteBookByBid(Integer bid);
}
